package com.doit.day04

object _01_元祖 {
  def main(args: Array[String]): Unit = {
    //元祖对象
    val tuple = new Tuple3[Int, String, Boolean](1, "zss", true)//二元元祖又称之为对偶元祖
    println(tuple._1)//1
    println(tuple._2)//"zss"
    println(tuple._3)//true

    val tuple1 = Tuple3(1, "zss", true)

    val tuple2 = (1, "zss", true,18)

  }

}
